﻿import request from '/@/utils/request';
enum Api {
  AddGoViewProEchartsConfig = '/api/goViewProEchartsConfig/add',
  DeleteGoViewProEchartsConfig = '/api/goViewProEchartsConfig/delete',
  UpdateGoViewProEchartsConfig = '/api/goViewProEchartsConfig/update',
  SaveGoViewProEchartsConfig = '/api/goViewProEchartsConfig/save',
  PageGoViewProEchartsConfig = '/api/goViewProEchartsConfig/page',
  ExportGoViewProEchartsConfig = 'api/goViewProEchartsConfig/export',
  GetGoViewProGoViewProIdDropdown = `/api/goViewProEchartsConfig/GoViewProGoViewProIdDropdown`,
}

//导出大屏Echarts配置
export const exportGoViewProEchartsConfigExcel=(params?:any)=>
	request({
		url:Api.ExportGoViewProEchartsConfig,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加大屏Echarts配置
export const addGoViewProEchartsConfig = (params?: any) =>
	request({
		url: Api.AddGoViewProEchartsConfig,
		method: 'post',
		data: params,
	});

// 删除大屏Echarts配置
export const deleteGoViewProEchartsConfig = (params?: any) => 
	request({
			url: Api.DeleteGoViewProEchartsConfig,
			method: 'post',
			data: params,
		});

// 编辑大屏Echarts配置
export const updateGoViewProEchartsConfig = (params?: any) => 
	request({
			url: Api.UpdateGoViewProEchartsConfig,
			method: 'post',
			data: params,
		});

// 保存大屏Echarts配置
export const saveGoViewProEchartsConfig = (params?: any) => 
	request({
			url: Api.SaveGoViewProEchartsConfig,
			method: 'post',
			data: params,
		});

// 分页查询大屏Echarts配置
export const pageGoViewProEchartsConfig = (params?: any) => 
	request({
			url: Api.PageGoViewProEchartsConfig,
			method: 'post',
			data: params,
		});

export const getGoViewProGoViewProIdDropdown = (model) =>
		request({
		url: `${Api.GetGoViewProGoViewProIdDropdown}`,
		method: 'post',
		data: model
		});

